package com.herui.iot.ui.main;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.herui.sdyu_lib.base.BaseFragment;
import com.herui.sdyu_lib.utils.StringUtils;
import com.herui.sdyu_lib.utils.ToastUtil;
import com.herui.sport_care.R;
import com.herui.sport_care.ui.BaseSportFragment;
import com.herui.sport_care.ui.report.ReportActivity;

import butterknife.BindView;
import butterknife.OnClick;


/**
 * Created by amanda.shan on 2022/10/19.
 */
public class ReportFragment extends BaseSportFragment {

    public static ReportFragment newInstance() {
        ReportFragment fragment = new ReportFragment();
        Bundle args = new Bundle();
        fragment.setArguments(args);

        return fragment;
    }

    @Override
    public int getLayout() {
        return R.layout.fragment_report;
    }

    @Override
    public void initParam() {

    }

    @OnClick({R.id.imgv_single,R.id.imgv_all})
    public void onViewClick(View view) {
        Intent Intent;
        switch (view.getId()) {
            case R.id.imgv_single:
                System.out.println("跳转单项报告页面");
                Intent = new Intent(baseActivity, ReportActivity.class);
                Intent.putExtra("type", 1);
                baseActivity.jump(Intent);
                break;
            case R.id.imgv_all:
                System.out.println("跳转综合报告页面");
                Intent = new Intent(baseActivity, ReportActivity.class);
                Intent.putExtra("type", 2);
                baseActivity.jump(Intent);
                break;
            default:
                break;
        }
    }

}
